﻿#建议保存编码为：bom头 + utf8
param
(
	[parameter(Mandatory = $true)]
	[ValidateNotNullOrEmpty()]
	[Alias("cname")][String]$cluster名
)

$private:cluster名字合法否 = & "${PSScriptRoot}/_check_cds_name.ps1" $cluster名
if ($private:cluster名字合法否 -eq $true)
{
}
else
{
	& "${PSScriptRoot}/Write-Error2.ps1"  '信息：cluster名字不合法。退出码1'
	exit 1
}

if (Test-Path -LiteralPath "${PSScriptRoot}/${cluster名}")
{

}
else
{
	& "${PSScriptRoot}/Write-Error2.ps1"  "信息：不存在${cluster名}文件夹。退出码2"
	exit 2
}

& "${PSScriptRoot}/Write-Host2.ps1"  -ForegroundColor Green "信息：${cluster名}正常"
exit 0
